<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
    <style>
        .form-control{
            width:100px;
        }
    </style>
</head>
<body>
    <div class="container">
        
        <form action="/doEdit" method="POST" role="form">
            <legend>修改数据</legend>
            <input type="hidden" name = "id" value="{{@data._id}}">
        
            <div class="form-group">
                <label for="name">名字</label>
                <input type="text" name="name"value= "{{data.name}}"class="form-control" id="name" placeholder="请输入姓名">
            </div>
            <div class="form-group">
                <label for="sex">性别</label>
                <input id="sex" name="sex" type="text" value="{{data.sex}}" class="form-control" id="" placeholder="请输入性别">
            </div>
            <div class="form-group">
                <label for="res">成绩</label>
                <input type="text" id="res" name="result" value="{{data.result}}"class="form-control" id="" placeholder="请输入成绩">
            </div>
        
            
        
            <button type="submit" class="btn btn-primary">修改</button>
        </form>
        
    </div>
</body>
</html>